import axios from 'axios'
exports.info = (id, cid) => {
  return axios.get('/api/exercises/question/info', {
    params: {
      bookId: id,
      catalogId: cid
    }
  })
}
exports.list = (id) => {
  return axios.get('/api/exercises/question/detail', {
    params: {
      exercisesId: id
    }
  })
}
exports.result = (id, uid) => {
  return axios.get('/api/exercises/question/result', {
    params: {
      exercisesId: id,
      userId: uid
    }
  })
}
exports.exist = (id, uid) => {
  return axios.get('/api/exercises/question/exist', {
    params: {
      userId: uid,
      exercisesId: id
    }
  })
}
